package com.cai.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cai.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Title: UserMapper
 * @Author RuoLi
 * @Package com.cai.demo.dao
 * @Date 2023/12/14 20:51
 * @description: 用户类
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据用户名获取权限
     * @param username 用户名
     * @return 权限
     */
    String getPermission(String username);
}
